﻿
/* 
 本类由PWMIS 实体类生成工具(Ver 4.1)自动生成
 http://www.pwmis.com/sqlmap
 使用前请先在项目工程中引用 PWMIS.Core.dll
 2012/3/30 17:59:35
*/

using System;
using PWMIS.Common;
using PWMIS.DataMap.Entity;

namespace PrjCmd.Entity 
{
  [Serializable()]
  public  class OrderDetails : EntityBase
  {
    public OrderDetails()
    {
            TableName = "OrderDetails";
            EntityMap=EntityMapType.Table;
            //IdentityName = "标识字段名";

            //PrimaryKeys.Add("主键字段名");
    PrimaryKeys.Add("OrderID");
    PrimaryKeys.Add("ProductID");

            
    }


      protected override void SetFieldNames()
      {
           PropertyNames = new string[] { "OrderID","ProductID","UnitPrice","Quantity" };
      }



      /// <summary>
      /// 
      /// </summary>
      public System.Int32 OrderID
      {
          get{return getProperty<System.Int32>("OrderID");}
          set{setProperty("OrderID",value );}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.Int32 ProductID
      {
          get{return getProperty<System.Int32>("ProductID");}
          set{setProperty("ProductID",value );}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.Decimal UnitPrice
      {
          get{return getProperty<System.Decimal>("UnitPrice");}
          set{setProperty("UnitPrice",value );}
      }

      /// <summary>
      /// 
      /// </summary>
      public System.Int32 Quantity
      {
          get{return getProperty<System.Int32>("Quantity");}
          set{setProperty("Quantity",value );}
      }


  }
}
